/**
 * 搜索控件组件
 * created by xq on 2018/10/16
 */
import React from 'react'
import PropTypes from 'prop-types'
class SearchBar extends React.Component {
  render() {
    console.log(this.props)
    return (
      <input onChange={this.props.changeSearchText} defaultValue={this.props.searchText}/>
    )
  }
}
SearchBar.propTypes = {
  changeSearch: PropTypes.func,
  searchText: PropTypes.string
}
export default SearchBar